<div class="user-center-head"><?php echo L('changepasswd')?></div>
<form action="<?php echo url('user/user_password');?>" method="post" name="changePwdForm" id="changePwdForm">
  <table class="form-table">
    <tr>
      <th width="25%" align="left"><?php echo L('loginname')?>:</th>
      <td width="75%"><?php echo isset($user['email']) ? $user['email'] : null ?></td>
    </tr>
    <tr>
      <th align="left"><?php echo L('oldpassword')?>:</th>
      <td><input type="password" name="oldpassword" pattern="^\S{6,32}$" alt="<?php echo L('pwtipod');?>"></td>
    </tr>
    <tr>
      <th align="left"><?php echo L('newpassword')?>:</th>
      <td><input type="password" name="password" pattern="^\S{6,32}$" bind='confirm_password' alt="<?php echo L('pwtip');?>"></td>
    </tr>
    <tr>
      <th align="left"><?php echo L('doublenpw')?>:</th>
      <td><input type="password" name="confirm_password" pattern="^\S{6,32}$" bind='password' alt="<?php echo L('pwtip');?>"></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td><input type="submit" name="dosubmit" value="<?php echo L('saveuser')?>" class="btn"></td>
    </tr>
  </table>
</form>